package GoFPatterns.kt.test.counter.method.service.impl;

import GoFPatterns.kt.test.counter.method.dao.Counter;
import GoFPatterns.kt.test.counter.method.service.CounterService;

public class CounterServiceImpl implements CounterService {
    private Counter counter;

    public Counter getCounter() {
        return counter;
    }

    public void setCounter(Counter counter) {
        this.counter = counter;
    }

    @Override
    public void getCount(int num1,int num2) {
        System.out.println("num1和num2计算后得到："+counter.count(num1,num2));
    }
}
